// 搭建数据仓库 向外导出
import { legacy_createStore, combineReducers, compose, applyMiddleware } from 'redux'
// import reduxThunk from 'redux-thunk';

import handleArr from './Arr/reducer'
import handleNum from './Number/reducer'
// 合并多个reducer
const reducers = combineReducers({
    handleArr,
    handleNum
})
const store = legacy_createStore(reducers)
// const composeEnhancers = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
//     ? (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({})
//     : compose;
// const store = legacy_createStore(reducers, composeEnhancers(applyMiddleware(reduxThunk)))
export default store